﻿namespace N2.Trac.Items
{
	using Integrity;
	using Workflow;

	[Definition]
	[RestrictParents(typeof(RequirementContainer), typeof(Requirement))]
	//[AllowedZones("Requirements")]
	public class Requirement: BaseTrackItem
	{
		public override string IconUrl {
			get {
				return this.GetIconFromState()
					?? base.IconUrl
					?? "~/Trac/UI/Img/02/09.png";
			}
		}

		public override string TemplateUrl {
			get {
				return this.ZoneName == "Requirements"
					? "~/Trac/UI/Parts/Requirement.ascx"
					: "~/Trac/UI/Views/Requirement.aspx";
			}
		}
	}
}
